﻿using Newtonsoft.Json;
using Org.BouncyCastle.Crypto;
using SqlSugar;
using System.Collections.Generic;

namespace NP.BPMReportPlatform.Entities.BPM_Business
{

    /// <summary>
    /// 客户应收余额调整申请 主表
    /// </summary>
    [SugarTable("KHYSYETZHeader")]
    public class KHYSYETZHeader : BaseHead
    {
        /// <summary>
        /// 公司代码
        /// </summary>
        public string CompanyCode { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        public string CompanyName { get; set; }

        /// <summary>
        /// 信控范围
        /// </summary>
        public string InfoControl { get; set; }

        /// <summary>
        /// 客户类型
        /// </summary>
        public string CustomerType { get; set; }

        /// <summary>
        /// 财务调整科目
        /// </summary>
        public string AdjustSubject { get; set; }

        /// <summary>
        /// 调整金额总计(单位：元)
        /// </summary>
        public string AmountTotal { get; set; }

        /// <summary>
        /// 事业群
        /// </summary>
        public string BusinessGroup { get; set; }

        /// <summary>
        /// 销售大区
        /// </summary>
        public string SalesRegion { get; set; }

        /// <summary>
        /// 成本中心
        /// </summary>
        public string CostCentre { get; set; }

        /// <summary>
        /// 成本中心名称
        /// </summary>
        public string CostCentreName { get; set; }

        /// <summary>
        /// 利润中心
        /// </summary>
        public string ProfitCentre { get; set; }

        /// <summary>
        /// 调整原因
        /// </summary>
        public string Reason { get; set; }

        /// <summary>
        /// 同步结果(同步成功、同步失败)
        /// </summary>
        public string SyncResult { get; set; }

        /// <summary>
        /// 同步信息（接口报错信息）
        /// </summary>
        public string SyncMessage { get; set; }

        /// <summary>
        ///  行数据
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<KHYSYETZDetail> LineData { get; set; }
    }
}